package com.example.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.example.model.Poi;
import com.example.service.PoiService;

/**
 *
 * @author changwei
 * @date 2019年12月31日
 */
@RestController
@RequestMapping("/poi")
public class PoiController {

	@Autowired
	private PoiService poiService;
	
	@RequestMapping(value="/getById",method=RequestMethod.GET)
	public Poi getById(String id) {
		
		return poiService.getById(id);
	}
}
